﻿using System.Collections.Generic;

namespace OrchardPo.ViewModels {
    public class CultureGroupDetailsViewModel {
        public CultureGroupDetailsViewModel() {
            Groups = new List<TranslationGroup>();
            CurrentGroupTranslations = new List<TranslationViewModel>();
        }

        public string Culture { get; set; }
        public IList<TranslationGroup> Groups { get; set; }
        public string CurrentGroupPath { get; set; }
        public IList<TranslationViewModel> CurrentGroupTranslations { get; set; }
        public bool CanTranslate { get; set; }

        public class TranslationViewModel {
            public int Id { get; set; }
            public string GroupPath { get; set; }
            public string Context { get; set; }
            public string Key { get; set; }
            public string OriginalString { get; set; }
            public string LocalString { get; set; }
            public bool ExistsInEnglish { get; set; }
        }

        public class TranslationGroup {
            public string Path { get; set; }
            public string Url { get; set; }
            public bool IsComplete { get; set; }
            public int TotalCount { get; set; }
            public int EnglishCount { get; set; }
            public int ObsoleteCount { get; set; }
            public int MissingCount { get; set; }
        }
    }
}